package com.hmall.user.service.impl;


import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmall.user.mapper.PayUserMapper;
import com.hmall.user.pojo.User;
import com.hmall.user.service.PayUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class PayUserServiceImpl extends ServiceImpl<PayUserMapper, User> implements PayUserService {

    @Autowired
   private PayUserMapper payUserMapper;

    @Override
    public User selectById(Long userid) {
        User user = payUserMapper.selectByIdo(userid);
        return user;
    }

    @Override
    public void updateById1(Long status, Long userId) {

        payUserMapper.updateUser(status,userId);
    }



}
